package com.cfets.annualAssessment.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.experimental.Builder;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.hateoas.ResourceSupport;

import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;

/**
 * Created with Account
 * User: pual
 * Date: 2016/10/12
 * Desc:
 */
@Data
@Table(name = "t_account")
public class Account extends BaseEntity{

    @NotEmpty(message = "用户登录名不能为空")
    private String accountName;
    @JsonIgnore
    private String password;
    @NotEmpty(message = "用户姓名不能为空")
    private String username;

    private String phone;
    private String fax;
    private String postTime;
    private int status;
    private int rolename;
    @Transient
    @NotEmpty(message = "密码必须填写")
    private String newpassword;

    @JsonIgnore
    @Transient
    private String roleIds;

//    @JsonIgnore
//    @Transient
//    private String auth;
}
